package com.smallA.association.constant;

/**
 * 权限表
 *
 * @author 君未洋
 */
public class UserConstant {
    // 这个是在Security认证用的

    public static final String ROLE_BASE_ACCESS = "BASE_ACCESS";

    //下面的是在controller使用的


    public static final String STUDENT_WRITE_ACCESS = "ROLE_STUDENT_WRITE_ACCESS";
    public static final String STUDENT_READ_ACCESS = "ROLE_STUDENT_READ_ACCESS";
    public static final String ASSOCIATION_WRITE_ACCESS = "ROLE_ASSOCIATION_WRITE_ACCESS";
    public static final String ASSOCIATION_READ_ACCESS = "ROLE_ASSOCIATION_READ_ACCESS";
    public static final String MANAGER_WRITE_ACCESS = "ROLE_MANAGER_WRITE_ACCESS";
    public static final String MANAGER_READ_ACCESS = "ROLE_MANAGER_READ_ACCESS";
    public static final String MANAGER_SUP_ACCESS = "ROLE_MANAGER_SUP_ACCESS";

    // 下面是关于各种身份的返回值

    public static final int ROLE_STUDENT_ID = 1;
    public static final int ROLE_ASSOCIATION_ID = 2;
    public static final int ROLE_MANAGER_ID = 3;
    public static final int ROLE_MANAGER_SUP_ID = 4;

    // 下面是关于用户状态

    public static final int STATE_REGISTER = 0;
    public static final int STATE_NORMAL = 1;
    public static final int STATE_BANING = 2;
}

